<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
    <head>
        <title>Count to 10 Example(using JSTL)</title>
    </head>

    <body>
        <table border="1">
            <tr><td colspan="2">2 times-table</td></tr>
            <c:forEach var="i" begin="1" end="5" step="1">
                <tr>
                    <td>
                        <c:out value="${i}" />
                    </td>
                    <td>
                        <c:out value="${i*2}" />
                    </td>
                </tr>
            </c:forEach>
        </table>
        <br>
        <table border="1">
            <tr><td colspan="2">5 times-table</td></tr>
            <c:forEach var="i" begin="1" end="5" step="1">
                <tr>
                    <td>
                        <c:out value="${i}" />
                    </td>
                    <td>
                        <c:out value="${i*5}" />
                    </td>
                </tr>
            </c:forEach>
        </table>
    </body>
</html>

